package com.boe.hbd.server.dao;

import java.util.List;

import com.boe.hbd.server.model.View;

public class ViewDao extends BaseDao {

	private static ViewDao instance = new ViewDao();

	private ViewDao() {
	}

	public static ViewDao getInstance() {
		return instance;
	}

	public View findView(int id) {
		return (View) find("findView", id);
	}

	public void insertView(View v) {
		insert("insertView", v);
	}
	
	public List<View> findAll(){
		return find("findAll");
	}

}
